import axios from "../network/http";

/**
 * 用户地址接口管理
 */

const address = {
  //! 查询所有的收货地址
  getAddressList() {
    return axios(`/address/list`, 'GET', params);
  },
  //! 新增收货地址
  addAddress(params) {
    return axios(`/address/add`, 'POST', params);
  },
  //! 修改收货地址
  updateAddress(params) {
    return axios(`/address/update`, 'POST', params);
  },
  //! 删除收货地址
  delAddress(params) {
    return axios(`/address/delete`, 'POST', params);
  }
  
};

export default address;
